<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<meta content="telephone=no" name="format-detection">
<meta content="email=no" name="format-detection">
<link href="css/H-ui.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="http://lib.h-ui.net/Hui-iconfont/1.0.8/iconfont.min.css" />
<script type="text/javascript" src="http://lib.h-ui.net/jquery/1.9.1/jquery.min.js"></script>
<title>jQuery.Huitags.js - H-ui前端框架官方网站 - 专注前端解决方案</title>
<meta name="keywords" content="jquery.Huitags.js,标签插件,H-ui前端框架">
<meta name="description" content="jquery.Huitags.js插件帮助手册。">
</head>
<body>
<article class="cl pd-20">
	<h1 class="page_title">jquery.Huitags.js <span class="label label-success radius">已封装</span></h1>
	<p>H-ui.js 中已封装，无需单独下载。单独下载地址
		<a href="http://lib.h-ui.net/Hui/v3.0.4/jquery.Huitags.js" class="btn radius btn-primary">jquery.Huitags.js</a>
	</p>
	<p>jQuery.Huitags是一个用js编写的jQuery插件，用来实现标签效果。</p>
	<h2>使用方法</h2>
	<p>1、jQuery.Huitags.js依赖jquery或者zepto.js。</p>
	<p>js调用</p>
<pre class="prettyprint linenums">$("#Huitags-demo1").Huitags(
	{
		value:'Hui前端框架,H-ui,辉哥',
		maxlength : 20,
		number : 5,
		tagsDefault : ["Html","CSS","JS"],
	}
);</pre>
	<h2>demo效果</h2>
	<div class="codeView docs-example">
		<div id="Huitags-demo1"></div>
	</div>
	<h2>相关参数</h2>
	<table class="table table-border table-bg table-bordered">
		<thead>
			<tr>
				<th width="10%">属性</th>
				<th width="10%">默认值</th>
				<th width="15%">描述</th>
				<th>备注</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td>value</td>
				<td>'Hui前端框架,H-ui,辉哥'</td>
				<td>初始化标签</td>
				<td></td>
			</tr>
			<tr>
				<td>maxlength</td>
				<td>20</td>
				<td>单个标签最大字符</td>
				<td></td>
			</tr>	
			<tr>
				<td>number</td>
				<td>5</td>
				<td>标签数量</td>
				<td></td>
			</tr>
			<tr>
				<td>tagsDefault</td>
				<td>["Html","CSS","JS"]</td>
				<td>备选提示标签</td>
				<td>数组</td>
			</tr>										
		</tbody>
	</table>	
</article>
<script type="text/javascript" src="http://lib.h-ui.net/prettify.js"></script>
<script type="text/javascript" src="js/jQuery.Huitags.js"></script>
<script>
$(function(){
	prettyPrint();
	
	$("#Huitags-demo1").Huitags();
});
</script>
</body>
</html>
